package com.xiyou.luckdraw.api.dal.mapper.luckdraw;

import com.xiyou.luckdraw.api.dal.entitys.AnswerBank;
import com.xiyou.luckdraw.api.dal.entitys.OrderInfo;
import com.xiyou.luckdraw.api.dal.entitys.UserInfo;
import com.xiyou.luckdraw.api.dto.login.RolePermission;
import com.xiyou.luckdraw.api.dto.login.UserInfoDto;
import com.xiyou.luckdraw.api.dto.login.UserRoleInfo;
import com.xiyou.luckdraw.common.tkmapper.TkMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName: LoginMapper
 * @Description:
 * @author: limingxing
 * @Date: 2019-10-08 16:48
 */
@Mapper
public interface LoginMapper extends TkMapper<UserInfo> {

    UserInfoDto getUser(String userName);

    List<UserRoleInfo> getRole(Long userId);

    List<RolePermission> getPermission(Long userId);

}
